<!DOCTYPE html>
<html lang="zh-CN">

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
		<?php if ($type=='article') { ?>
		<title><?php  echo $title;  ?>-<?php  echo $article->Category->Name;  ?>-<?php  echo $name;  ?></title>
		<meta name="keywords" content="<?php  foreach ( $article->Tags as $tag) { ?><?php  echo $tag->Name;  ?>,<?php }   ?>" />
		<?php $description = preg_replace('/[\r\n\s]+/', ' ', trim(SubStrUTF8(TransferHTML($article->Content,'[nohtml]'),100)).'...'); ?>
		<meta name="description" content="<?php  echo $description;  ?>" />
		<?php }elseif($type=='page') {  ?>
		<title><?php  echo $title;  ?>-<?php  echo $name;  ?></title>
		<meta name="keywords" content="<?php  echo $title;  ?>,<?php  echo $name;  ?>"/>
		<?php $description = preg_replace('/[\r\n\s]+/', ' ', trim(SubStrUTF8(TransferHTML($article->Content,'[nohtml]'),100)).'...'); ?>
		<meta name="description" content="<?php  echo $description;  ?>"/>
		<meta name="author" content="<?php  echo $article->Author->StaticName;  ?>">
		<?php }elseif($type=='index') {  ?>
		<title><?php  echo $name;  ?><?php if ($page>'1') { ?>-第<?php  echo $pagebar->PageNow;  ?>页<?php } ?>-<?php  echo $subname;  ?></title>
		<meta name="Keywords" content="<?php  echo $zbp->Config('Alist')->Alist_keywords;  ?>">
		<meta name="description" content="<?php  echo $zbp->Config('Alist')->Alist_description;  ?>">
		<?php }elseif($type=='category') {  ?>
		<title><?php  echo $title;  ?>-<?php  echo $name;  ?></title>
		<meta name="Keywords" content="<?php  echo $title;  ?>,<?php  echo $name;  ?>">
		<meta name="description" content="<?php  echo $category->Intro;  ?>">
		<?php }else{  ?>
		<title><?php  echo $title;  ?>-<?php  echo $name;  ?></title>
		<meta name="Keywords" content="<?php  echo $zbp->Config('Alist')->Alist_keywords;  ?>">
		<meta name="description" content="<?php  echo $zbp->Config('Alist')->Alist_description;  ?>">
		<?php } ?>
		<!--<link rel="shortcut icon" href="<?php  echo $host;  ?>zb_users/theme/<?php  echo $theme;  ?>/style/favicon.ico">-->
		<link rel="stylesheet" href="<?php  echo $host;  ?>zb_users/theme/<?php  echo $theme;  ?>/assets/plugins/bootstrap/css/bootstrap.min.css" />
		<link rel="stylesheet" href="<?php  echo $host;  ?>zb_users/theme/<?php  echo $theme;  ?>/style/<?php  echo $style;  ?>.css" />
		<script src="<?php  echo $host;  ?>zb_system/script/common.js" type="text/javascript"></script>
		<script src="<?php  echo $host;  ?>zb_system/script/c_html_js_add.php" type="text/javascript"></script>		
		<!--<script type="text/javascript" src="<?php  echo $host;  ?>zb_users/theme/<?php  echo $theme;  ?>/assets/plugins/bootstrap/js/jquery-1.9.1.min.js"></script>-->
		<!--<script type="text/javascript" src="<?php  echo $host;  ?>zb_users/theme/<?php  echo $theme;  ?>/assets/plugins/bootstrap/js/bootstrap.min.js"></script>-->
	</head><?php  echo $header;  ?>

	<body>

		<header>

				<nav class="navbar navbar-inverse navbar-fixed-top transparent">
					<div class="container">
	
						<div class="navbar-header">
							<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
								<span class="sr-only">Toggle navigation</span>
								<span class="icon-bar"></span>
								<span class="icon-bar"></span>
								<span class="icon-bar"></span>
							</button>
							<a class="navbar-brand" href="<?php  echo $host;  ?>"><?php  echo $name;  ?></a>
						</div>
	
						<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
							<ul class="nav navbar-nav">
								<?php  if(isset($modules['navbar'])){echo $modules['navbar']->Content;}  ?>
							</ul>
						</div>
	
					</div>
				</nav>

		</header>